# coding=utf-8

class TestMessage:
    def __init__(self, message):
        self.type = "autoTest"
        self.message = message

    def to_dict(self):
        _dict = {
            'type': self.type,
            'message': self.message
        }

        return _dict

    def to_str(self):
        return '{"type": "%s","message": "%s"}' % (self.type, str(self.message).replace('\r\n',''))
